package com.bjut.vendormgrsys.model.repository;

import com.bjut.vendormgrsys.model.domain.PositionPO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface PositionRepository extends JpaRepository<PositionPO, String>, JpaSpecificationExecutor<PositionPO> {
    PositionPO getByIdAndUid(String id, String uid);

    List<PositionPO> getAllByPrincipalEquals(String account);
}
